package com.chapter12.demo3;

public class Student {
    private int no;
    private String name;

    public Student() {
        this(0,"匿名");
    }

    public Student(int no) {
        this(no,"匿名");
    }

    public Student(int no, String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}
